package com.liachen.stock.ext;

import com.liachen.stock.entity.etf.Etf;
import com.liachen.stock.entity.etf.EtfBrief;
import com.liachen.stock.entity.etf.EtfRoe;
import com.liachen.stock.entity.etf.EtfValuation;

import java.io.IOException;
import java.util.List;

/**
 * 理杏仁服务
 *
 * @author d85v8h9 chen.liang
 * @date 2021/12/24 10:44
 * @since V1.0
 */
public interface LixingerService {
    /**
     * 获取ETF列表
     * @return
     */
    List<Etf> getEtfList() throws IOException;

    /**
     * 根据market获取ETF列表
     * @return
     */
    List<Etf> getEtfListByMarket(String market) throws IOException;

    /**
     * 获取roe信息
     * @param stockCodeList
     * @return
     */
    List<EtfRoe> getRoeInfo(List<String> stockCodeList) throws IOException;

    /**
     * 获取roe信息
     * @param stockCodeList
     * @return
     */
    List<EtfRoe> getRoeInfoByMarket(List<String> stockCodeList, String market) throws IOException;

    /**
     * 获取估值信息
     * @param stockCodeList
     * @return
     */
    List<EtfValuation> getEtfValuation(List<String> stockCodeList) throws IOException;

    /**
     * 获取估值信息
     * @param stockCodeList
     * @return
     */
    List<EtfValuation> getEtfValuationByMarket(List<String> stockCodeList, String market) throws IOException;


    void addFollow(String groupId, String stockId);

    void exportEtfBrief(List<EtfBrief> etfBriefList);
}
